import java.lang.Exception;

abstract class CommEvent {
	protected Channel channel;
	protected Object obj;
	
	public abstract void Sync() throws InterruptedException;
	public abstract boolean Poll();
	public abstract void Enqueue();
	public abstract void Dequeue();
	public abstract boolean CommOccurred();
	
	public Object GetObject() {
		synchronized (Lock.lock) {
			return obj;
		}
	}
}
